//
//import com.antgroup.zmxy.openplatform.api.DefaultZhimaClient;
//import com.antgroup.zmxy.openplatform.api.FileItem;
//import com.antgroup.zmxy.openplatform.api.ZhimaApiException;
//import com.antgroup.zmxy.openplatform.api.request.ZhimaCreditScoreGetRequest;
//import com.antgroup.zmxy.openplatform.api.response.ZhimaCreditScoreGetResponse;
// 
//public class TestZhimaCreditScoreGet {
//    //芝麻开放平台地址
//    private String gatewayUrl     = "https://zmopenapi.zmxy.com.cn/openapi.do";
//  //商户应用 Id
//    private String appId          = "1002508";
//    //商户 RSA 私钥
//    private String //privateKey     = "MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAN0yqPkLXlnhM+2H/57aHsYHaHXazr9pFQun907TMvmbR04wHChVsKVgGUF1hC0FN9hfeYT5v2SXg1WJSg2tSgk7F29SpsF0I36oSLCIszxdu7ClO7c22mxEVuCjmYpJdqb6XweAZzv4Is661jXP4PdrCTHRdVTU5zR9xUByiLSVAgMBAAECgYEAhznORRonHylm9oKaygEsqQGkYdBXbnsOS6busLi6xA+iovEUdbAVIrTCG9t854z2HAgaISoRUKyztJoOtJfI1wJaQU+XL+U3JIh4jmNx/k5UzJijfvfpT7Cv3ueMtqyAGBJrkLvXjiS7O5ylaCGuB0Qz711bWGkRrVoosPM3N6ECQQD8hVQUgnHEVHZYtvFqfcoq2g/onPbSqyjdrRu35a7PvgDAZx69Mr/XggGNTgT3jJn7+2XmiGkHM1fd1Ob/3uAdAkEA4D7aE3ZgXG/PQqlm3VbE/+4MvNl8xhjqOkByBOY2ZFfWKhlRziLEPSSAh16xEJ79WgY9iti+guLRAMravGrs2QJBAOmKWYeaWKNNxiIoF7/4VDgrcpkcSf3uRB44UjFSn8kLnWBUPo6WV+x1FQBdjqRviZ4NFGIP+KqrJnFHzNgJhVUCQFzCAukMDV4PLfeQJSmna8PFz2UKva8fvTutTryyEYu+PauaX5laDjyQbc4RIEMU0Q29CRX3BA8WDYg7YPGRdTkCQQCG+pjU2FB17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wzcuV1VrSXf6Ah5z5Z6UKxKovC+8CZQmT+tExICfAVRbdEtFLfvFXKm5Uu5H3aT0+X8kbXGjN663sp4=";
//   
// 
//    public void  testZhimaCreditScoreGet() {
//        ZhimaCreditScoreGetRequest req = new ZhimaCreditScoreGetRequest();
//        req.setPlatform("zmop");
//        req.setTransactionId("201512100936588040000000465158");// 必要参数        
//        req.setProductCode("w1010100100000000001");// 必要参数        
//        req.setOpenId("268816231939676969685782895");// 必要参数        
//        DefaultZhimaClient client = new DefaultZhimaClient(gatewayUrl, appId, privateKey,
//            zhimaPublicKey);
//        try {
//            ZhimaCreditScoreGetResponse response = client.execute(req);
//            System.out.println(response.isSuccess());
//            System.out.println(response.getErrorCode());
//            System.out.println(response.getErrorMessage());
//        } catch (ZhimaApiException e) {
//            e.printStackTrace();
//        }
//    }
// 
//    public static void main(String[] args) {
//        TestZhimaCreditScoreGet result = new  TestZhimaCreditScoreGet();
//        result.testZhimaCreditScoreGet();
//    }
//}